package basicas;



import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Version;

import org.apache.commons.collections.functors.FalsePredicate;

@Entity
public class TipoDeServico  implements Cloneable {
	
	@Id @GeneratedValue (strategy = GenerationType.AUTO)
	private int id;
	@Column (nullable = false)
	private String nomeServico;
	@Column (nullable = false)
    private String descricaoServico;
	@Column (nullable = false)
	private double valorServico;
	@Version
	private Date dataUltimaAtualizacao;
	public int getid() {
		return id;
	}
	public void setid(int id) {
		this.id = id;
	}
	public String getNomeServico() {
		return nomeServico;
	}
	public void setNomeServico(String nomeServico) {
		this.nomeServico = nomeServico;
	}
	public String getDescricaoServico() {
		return descricaoServico;
	}
	public void setDescricaoServico(String descricaoServico) {
		this.descricaoServico = descricaoServico;
	}
	public double getValorServico() {
		return valorServico;
	}
	public void setValorServico(double valorServico) {
		this.valorServico = valorServico;
	}
	public TipoDeServico(int id, String nomeServico,
			String descricaoServico, double valorServico) {
		super();
		this.id = id;
		this.nomeServico = nomeServico;
		this.descricaoServico = descricaoServico;
		this.valorServico = valorServico;
	}
	public TipoDeServico() {
		super();
	}
	public Date getDataUltimaAtualizacao() {
		return dataUltimaAtualizacao;
	}
	public void setDataUltimaAtualizacao(Date dataUltimaAtualizacao) {
		this.dataUltimaAtualizacao = dataUltimaAtualizacao;
	}
	
	
	
}
